package com.jahentao.patentQuery.model.bean;

import java.io.Serializable;

/**
 * Created by jahentao on 2018/2/20.<br>
 * Version: 1.0<br>
 * 返回对象
 */
public class ResultBean implements Serializable {

    private static final long serialVersionUID = -1873432832774593189L;
    private boolean success = true;
    private String messageCode = "001";
    private String message = "";
    private Object data = "";

    public ResultBean() {
    }

    public ResultBean(boolean sucess)
    {
        this.success = sucess;
    }

    public ResultBean(boolean sucess, String message)
    {
        this.success = sucess;
        this.message = message;
    }

    public ResultBean(boolean sucess, String messageCode, String message)
    {
        this.success = sucess;
        this.messageCode=messageCode;
        this.message = message;
    }

    public ResultBean(boolean sucess, String messageCode, String message, Object data)
    {
        this.success = sucess;
        this.messageCode=messageCode;
        this.message = message;
        this.data=data;
    }

    public boolean getSuccess()
    {
        return success;
    }

    public void setSuccess(boolean value)
    {
        success = value;
    }

    public String getMessageCode()
    {
        return messageCode;
    }

    public void setMessageCode(String value)
    {
        messageCode = value;
    }

    public String getMessage()
    {
        return message;
    }

    public void setMessage(String value)
    {
        message = value;
    }

    public Object getData()
    {
        return data;
    }

    public void setData(Object value)
    {
        data = value;
    }

    @Override
    public String toString() {
        return "ResultBean [success=" + success + ", messageCode=" + messageCode + ", message=" + message + ", data=" + data + "]";
    }
}
